# -*- coding: utf-8 -*-
<%inherit file="/admin.mako"/>
<p style="text-align: center"><span class="destak">Cadastro de Candidatos</span></p>
${h.form(h.url(action='save',id=c.form_result['cdcandidato']),method='post')}
${h.hidden_field('cdcandidato',value=c.form_result['cdcandidato'] or '')}
${h.hidden_field('qtvotos',value=c.form_result['qtvotos'] or '0')}
<div id="list" class="inner_context">
  <table class="tablelist" width="100%" cellpadding="0" cellmargin="0">    
    <tbody class="ligth_gray">
      <tr>
        <td align="right" width="15%"><strong>C&oacute;digo</strong></td>
        <td width="*">${h.text_field('idcandidato',class_='ed',size='10',value=c.form_result['idcandidato'] or '')}</td>
      </tr>
      <tr>
        <td align="right"><strong>Nome</strong></td>
        <td>${h.text_field('nmcandidato',class_='ed',size='70',value=c.form_result['nmcandidato'] or '')}</td>
      </tr>
    </tbody>
  </table>
<br/>
${h.submit(value=' Salvar ',class_='ed')} <input type="button" name="btreset" id="btreset" value=" Limpar " class="ed"/>
</div>
${h.end_form()}
<br/>